sysroot: Support /boot on root or as seperate filesystem for syslinux and u-boot
authorWilliam Manley <will@stb-tester.com>
Wed, 15 Jul 2020 14:40:14 +0000 (15:40 +0100)
committerWilliam Manley <will@stb-tester.com>
Wed, 15 Jul 2020 19:37:49 +0000 (20:37 +0100)
commit0ced9fde7649271d9458ca424aa8c41908634b02
treec9e3d8d1d7652f3c17faed8556eda4264b3b4b10
parent4deb426835d234eaa55046175f7dffaea7864fdb
sysroot: Support /boot on root or as seperate filesystem for syslinux and u-boot

We use a similar trick to having a `sysroot -> .` symlink on the real root
here to support both /boot on root as well as on a separate filesystem.  No
matter how it's mounted `/boot/xyz` will always refer to the file you'd
expect.

This is nicer than my previous attempts at this because there's no
configuration nor auto-detection required.
src/libostree/ostree-bootloader-syslinux.c
src/libostree/ostree-bootloader-uboot.c
src/libostree/ostree-sysroot-deploy.c
tests/bootloader-entries-crosscheck.py